abstract class Geom2 {
  width: number;
  getType(){
    return 'Gemo'
  }
  abstract getArea():number;
}

class Circle2 extends Geom2 {
  getArea(){
    return 1
  }
}

interface Person {
  name:string
}
interface Teacher extends Person{
  teachingAge:number
}
const teacher={
  name:'dell',
  teachingAge:12
}
const getUserInfo = (user:Person) => {
  console.log(user.name)
}
getUserInfo(teacher)

https://dell-lee.com/typescript/DeviceMotionEvent.html?secret=secretKey